
export class Tool{
    static toast(msg, type='none'){
        uni.showToast({
            title: msg,
            type: type,
        })
    }

    static sleep(msecond){
        return new Promise(function (resolve, reject) {
            setTimeout(function () {
                resolve(1)
            }, msecond)
        })

    }
}